home *** CD-ROM | disk | FTP | other *** search
- CRY2MIPS(3F) Last changed: 2-25-98
-
-
- NNAAMMEE
- CCRRYY22MMIIPPSS, MMIIPPSS22CCRRYY - Converts Fortran data types between Cray Fortran
- data types and MIPS IEEE Fortran data types
-
- SSYYNNOOPPSSIISS
- IINNTTEEGGEERR CCRRYY22MMIIPPSS, MMIIPPSS22CCRRYY
-
- _i_e_r_r == CCRRYY22MMIIPPSS((_t_y_p_e,, _n_u_m,, _f_o_r_e_i_g_n,, _b_i_t_o_f_f,, _n_a_t_i_v_e,, _s_t_r_i_d_e,, _n_a_t_l_e_n,,
- _f_o_r_l_e_n[[,,_n_a_t_i_v_e_c_h]]))
-
- _i_e_r_r == MMIIPPSS22CCRRYY((_t_y_p_e,, _n_u_m,, _f_o_r_e_i_g_n,, _b_i_t_o_f_f,, _n_a_t_i_v_e,, _s_t_r_i_d_e,, _n_a_t_l_e_n,,
- _f_o_r_l_e_n[[,,_n_a_t_i_v_e_c_h]]))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS systems (except CRAY T90 systems that support IEEE arithmetic)
-
- IRIX systems
-
- DDEESSCCRRIIPPTTIIOONN
- CCRRYY22MMIIPPSS converts Cray Fortran data types (abbreviated as "Cray" in
- the following text) to data for systems that use MIPS IEEE Fortran
- data types (abbreviated as "MIPS" in the following text).
-
- MMIIPPSS22CCRRYY converts MIPS IEEE Fortran data types to Cray Fortran data
- types.
-
- When using the CF90 compiler or MIPSpro 7 Fortran 90 compiler on
- UNICOS or IRIX systems, all arguments must be of default kind unless
- documented otherwise. On UNICOS systems, the default kind is KKIINNDD==88
- for integer, real, complex, and logical arguments; on IRIX systems,
- the default kind is KKIINNDD==44.
-
- The following is a list of valid parameters for this routine.
-
- _t_y_p_e An integer giving the data type code, as follows.
-
- CCooddee DDeessccrriippttiioonn
-
- 1 Typeless (no translation; _n_a_t_l_e_n and _f_o_r_l_e_n must be
- equal and must be 64-, 128-, or 256-bits.)
-
- 2 Integer
- Cray: 64-bit twos complement
- MIPS: 8-, 16-, 32- or 64-bit twos complement
-
- 3 Real
- Cray: 64- or 128-bit Cray real
- MIPS: 32-, 64-, or 128-bit MIPS real
-
- 4 Complex
- Cray: 2 x 64 bit or 128-bit floating-point
- MIPS: 2 x 32, 64-bit, or 128-bit floating-point
-
- 5 Logical
- CRAY: 64-bit positive/negative logical
- MIPS: 8-, 16-, 32-, or 64-bit zero/nonzero logical
-
- 6 Character
- ASCII to ASCII; no translation.
-
- The _n_a_t_l_e_n and _f_o_r_l_e_n parameters select the size of the data.
-
- _n_u_m Number of data items to convert. Type integer variable,
- expression, or constant.
-
- _f_o_r_e_i_g_n Variable or array of any noncharacter type or length to
- contain data which is not native to the current system.
-
- _b_i_t_o_f_f Integer variable, expression, or constant giving the bit
- offset within the _f_o_r_e_i_g_n data variable or array to begin the
- conversion. _b_i_t_o_f_f must be at least 0 and no more than 63.
-
- _n_a_t_i_v_e Variable or array of any noncharacter type or length to
- contain data which is native to the current system. This
- variable or array should be of a type that corresponds to
- _t_y_p_e. If _t_y_p_e=6, use a dummy integer variable and the
- _n_a_t_i_v_e_c_h parameter (see description of _n_a_t_i_v_e_c_h).
-
- _s_t_r_i_d_e Integer variable or constant giving the memory increment for
- loading or storing data to the native array. For two and
- four-word items (complex and double-precision), this is a
- stride of items, not of words. For typeless, stride is always
- in words.
-
- This parameter is ignored for CHARACTER (_t_y_p_e = 6). Data in
- the foreign array is loaded or stored in a continuous bit
- stream regardless of this parameter.
-
- _n_a_t_l_e_n Native storage length of an item, in bits. For COMPLEX data,
- _n_a_t_l_e_n counts the total size of the real and imaginary
- component.
-
- _f_o_r_l_e_n Fortran storage length of an item, in bits. For COMPLEX data,
- _f_o_r_l_e_n counts the total size of the real and imaginary
- components.
-
- _n_a_t_i_v_e_c_h
- Optional character parameter specifying _n_a_t_i_v_e target variable
- if it is of type character (_t_y_p_e = 6). This parameter is
- ignored if _t_y_p_e is not character.
-
- RREETTUURRNN VVAALLUUEESS
- The returned function values are as follows:
-
- <<00 Parameter error; no translation performed.
-
- --11 Parameter error; too few arguments or _n_a_t_i_v_e_c_h not specified with
- _t_y_p_e = 6. This error is not returned on IRIX systems.
-
- --22 Parameter error; invalid _t_y_p_e.
-
- --33 Parameter error; invalid _n_u_m.
-
- --44 Parameter error; invalid _b_i_t_o_f_f.
-
- --55 Parameter error; invalid _n_a_t_l_e_n.
-
- --66 Parameter error; invalid _f_o_r_l_e_n.
-
- --77 Unable to mmaalllloocc() memory for translation.
-
- --88 Combination of _n_a_t_l_e_n and _f_o_r_l_e_n is invalid.
-
- --99 _n_a_t_i_v_e must be 64-bit word-aligned (CRAY only)
-
- --1100 _f_o_r_e_i_g_n must be 64-bit word-aligned.
-
- 00 Translation complete; no errors.
-
- >>00 Translation complete; return value is the number of integer or
- real values that completely overflowed during conversion.
- Overflows and NaNs which exist before conversion are not
- included.
-
- SSEEEE AALLSSOO
- _A_p_p_l_i_c_a_t_i_o_n _P_r_o_g_r_a_m_m_e_r'_s _L_i_b_r_a_r_y _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication
- SR-2165, for the printed version of this man page.
-